package com.mycorp.examples.timeservice.internal.provider.rest.consumer;

import org.eclipse.ecf.remoteservice.provider.IRemoteServiceDistributionProvider;
import org.eclipse.ecf.remoteservice.provider.RemoteServiceDistributionProvider;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;

public class Activator implements BundleActivator {

	public void start(final BundleContext context) throws Exception {
		context.registerService(IRemoteServiceDistributionProvider.class,
				new RemoteServiceDistributionProvider.Builder()
						.setName(TimeServiceRestClientContainer.TIMESERVICE_CONSUMER_CONFIG_NAME)
						.setInstantiator(new TimeServiceRestClientContainer.Instantiator()).build(),
				null);
	}

	public void stop(BundleContext context) throws Exception {
	}

}
